var TalkCon = iClass.get("Talk");
iClass.method("User", {
	addTalk: function(friend_id, content) {
		if (this.isLocking()) {
			Throw("用户被冻结，无法进行增删改操作");
		}
		//校验friend_id的有效性
		this._hasFriend(friend_id);
		var talk = new TalkCon({
			friend_id: friend_id,
			content: content
		});
		return talk;
	},
	getTalkList: function(friend_id, num, page) {
		this._hasFriend(friend_id);
		var talk_list_info = TalkCon.getTalkListByFriendId(friend_id, num, page);
		return talk_list_info;
	}
})